//
//  UIImage+image.m
//  新浪微博
//
//  Created by Hubery on 15/8/13.
//  Copyright (c) 2015年 Whx. All rights reserved.
//

#import "UIImage+image.h"

@implementation UIImage (image)
+(instancetype)imageWithOriginalName:(NSString *)imageName
{
    UIImage *image = [UIImage imageNamed:imageName];
    image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    //防止渲染 在 images.xc 里面点图片Render 属性
    return image;
}

+(instancetype)resizedImage:(NSString *)name
{
    UIImage *image = [UIImage imageNamed:name];
    return [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
}
@end
